<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
	$(document).ready(function(){
		$("#signout").bind("click", function(){
			$.ajax({
				type: "GET",
				url: "/RemoteSensing/user/signout.action",
				dataType: "json",
				success: function(result){
					window.location.href='<c:url value="/category/home.html"/>';
				}
			});
		});
		
	});
	function account(){
		window.location.href = '<c:url value="/order/listOrders.action"/>';
	}
</script>
<div id="shortcut">
	<div class="w">
		<ul class="fl lh">
			<li class="fore1 ld">遥感在线商城</li>
			
		</ul>
		<ul class="fr lh">
			<li id="loginbar" class="fore1 ld">
				<c:choose>
					<c:when test="${sessionScope.USER_NAME == null}">
						<a class="link-logout" href="<c:url value="/user/facade.action"/>" rel="nofollow">
							<span class="red">登录</span> 或 注册
						</a>
					</c:when>
					<c:otherwise>
						<span class="red">Hello, ${sessionScope.USER_NAME }!</span>
						<a class="link-logout" href="javascript:void(0)" rel="nofollow" id="signout">
							<span class="red">注销</span>
						</a>
					</c:otherwise>
				</c:choose>
			</li>
			<li class="fore2">
				<a href="javascript:account()">我的账户</a>
			</li>
			<li class="fore3">
				<a href="">帮助</a>
			</li>
		</ul>
		<span class="clr"></span>
	</div>
</div>